import React from "react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import App from "./App";

import store from "./store";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  // <React.StrictMode>
  // {/* Provider内部会监听store中state变化，一旦发生变化会让子组件重新渲染 */}
  <Provider store={store}>
    <App />
  </Provider>
  // </React.StrictMode>
);
